import request from '@/utils/request'

export function createInOutOrder(inOutOrderVo) {
  return request({
    url: '/admin/leaves/in-out-warehouse-order/createInOutOrder',
    method: 'post',
    data: inOutOrderVo
  })
}

export function deleteInOutOrder(id) {
  return request({
    url: `/admin/leaves/in-out-warehouse-order/deleteInOutOrder/${id}`,
    method: 'delete'
  })
}

export function updateInOutOrder(inOutOrderVo) {
  return request({
    url: '/admin/leaves/in-out-warehouse-order/updateInOutOrder',
    method: 'put',
    data: inOutOrderVo
  })
}

export function getInOutOrderList(page, limit, searchObj) {
  return request({
    url: `/admin/leaves/in-out-warehouse-order/getInOutOrderList/${page}/${limit}`,
    method: 'post',
    data: searchObj
  })
}

export function confirmInOutOrder(id) {
  return request({
    url: `/admin/leaves/in-out-warehouse-order/confirmInOutOrder/${id}`,
    method: 'post'
  })
}

